package com.zhiche.lisa.bms.dao.mapper.driver;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.zhiche.lisa.bms.dao.model.driver.BaseCvTankvolume;
import com.zhiche.lisa.bms.pojo.vo.driver.BaseCvTankvolumeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品车型油箱容积, cv = commercial vehicle Mapper 接口
 * </p>
 *
 * @author zhaoguixin
 * @since 2018-08-30
 */
public interface BaseCvTankvolumeMapper extends BaseMapper<BaseCvTankvolume> {

    /**
     * 分页查找商品车型油箱容积
     * @param page
     * @param ew
     * @return
     */
    List<BaseCvTankvolumeVO> selectByConditions(Page<BaseCvTankvolumeVO> page,
                                                @Param("ew") Wrapper<BaseCvTankvolumeVO> ew);

    /**
     * 根据条件得到油箱容积
     * @param ew
     * @return
     */
    BaseCvTankvolumeVO getOneByEW(@Param("ew") Wrapper<BaseCvTankvolumeVO> ew);

}
